package com.hdax.gulimall.coupon;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;


@SpringBootApplication
//每次刷新的时候，从配置中心动态的获取值
@RefreshScope
//开启服务发现客户端
@EnableDiscoveryClient
@EnableFeignClients
@EnableRedisHttpSession
public class CouponAppcation {

    public static void main(String[] args) {
        SpringApplication.run(CouponAppcation.class,args);
    }
}
